home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_objc.idb / usr / freeware / include / objpak / octext.h.z / octext.h
Encoding:
C/C++ Source or Header  |  1999-07-16  |  1.8 KB  |  76 lines

  1.  
  2. /*
  3.  * Portable Object Compiler (c) 1997,98.  All Rights Reserved.
  4.  * $Id: octext.h,v 1.11 1999/06/23 19:22:13 stes Exp $
  5.  */
  6.  
  7. /*
  8.  * This library is free software; you can redistribute it and/or modify it
  9.  * under the terms of the GNU Library General Public License as published 
  10.  * by the Free Software Foundation; either version 2 of the License, or
  11.  * (at your option) any later version.
  12.  *
  13.  * This program is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  * GNU Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public License
  19.  * along with this program; if not, write to the Free Software
  20.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23. #ifndef __OBJTXT_H__
  24. #define __OBJTXT_H__
  25.  
  26. #include <Object.h>
  27. #include <stdio.h>
  28.  
  29. @interface Text : Object
  30. {
  31.   id string;
  32.   id runs;
  33. }
  34.  
  35. + new;
  36. + new:(unsigned)nChars;
  37. + str:(STR)aString;
  38. + sprintf:(STR)format,...;
  39. + fromString:aString;
  40. + string:aString attribute:attrib;
  41. - copy;
  42. - free;
  43.  
  44. - (unsigned) hash;
  45. - (BOOL) isEqual:aStr;
  46.  
  47. - string;
  48. - runs;
  49. - (STR) str;
  50. - (unsigned) size;
  51. - (char) charAt:(unsigned)anOffset;
  52. - (char) charAt:(unsigned)anOffset put:(char)aChar;
  53. - at:(unsigned)anOffset insert:aString;
  54. - at:(unsigned)anOffset insert:(char*)aString count:(int)size;
  55. - deleteFrom:(unsigned)p to:(unsigned)q;
  56. - concat:b;
  57. - concatSTR:(STR)b;
  58.  
  59. - allBold;
  60. - makeBoldFrom:(unsigned)p to:(unsigned)q;
  61. - addAttribute:attribute;
  62. - addAttribute:attribute from:(unsigned)p to:(unsigned)q;
  63. - attributesAt:(unsigned)i;
  64. - (unsigned) runLengthFor:(unsigned)i;
  65.  
  66. - asString;
  67. - asText;
  68. - asParagraph;
  69.  
  70. - printOn:(IOD)aFile;
  71. @end
  72.  
  73. #endif /* __OBJTXT_H__ */
  74.  
  75.  
  76.